package com.xiaoyu.tio.redis;

import java.util.List;

import org.tio.core.intf.Packet;

public class RedisPacket extends Packet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 命令
	 */
	private String cmd;

	/**
	 * 参数
	 */
	private List<String> parms;

	private byte[] res;

	public RedisPacket() {
		
	}

	public RedisPacket(String cmd) {
		this.cmd = cmd;
	}

	public RedisPacket(String cmd, List<String> parms) {
		this.cmd = cmd;
		this.parms = parms;
	}

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	public byte[] getRes() {
		return res;
	}

	public void setRes(byte[] res) {
		this.res = res;
	}

	public List<String> getParms() {
		return parms;
	}

	public void setParms(List<String> parms) {
		this.parms = parms;
	}

}
